package com.gaoxinfu.demo.spring.cloud.jpa.customize.controller;

import com.gaoxinfu.demo.spring.cloud.jpa.customize.entity.Money;
import com.gaoxinfu.demo.spring.cloud.jpa.customize.service.MoneyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: gaoxinfu
 * @Date: 2021-06-18 08:25
 */
@RestController
@RequestMapping(value = "/money")
public class MoneyController {

    @Resource
    MoneyService moneyService;

    @GetMapping (value = "/findById")
    public Money findById(Integer id){
        return moneyService.findById(id);
    }
}
